// AvatarBox.h: interface for the CAvatarBox class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AVATARBOX_H__684A3B82_0D3A_4204_8E1B_DA16B2AFC726__INCLUDED_)
#define AFX_AVATARBOX_H__684A3B82_0D3A_4204_8E1B_DA16B2AFC726__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Graphic.h"
#include "xD3D.h"
#include "xTexture.h"
#include "D3DSprite.h"
#include "D3DPlane.h"

class CAvatarBox  
{
public:
	BOOL bInit;
	BOOL bShow;
	int AlphaCnt;
	int FrameCnt;
	int PNum;
	BOOL bAvatarDownloading;

	int Xl, Yl;
	WORD ColorKey;

	CPage Page;
	CD3DPlane PlaneAvatar;

	CAvatarBox();
	virtual ~CAvatarBox();

	BOOL Init(int pnum);
	void Destroy();
	BOOL ReCreate();
	void CheckDownloading();

	void Show(BOOL bshow);
	void Process();
	void Draw();
	void Draw2(int x, int y, DRAWDESC *pDesc);
};

#endif // !defined(AFX_AVATARBOX_H__684A3B82_0D3A_4204_8E1B_DA16B2AFC726__INCLUDED_)
